import './assets/main.css'
import './styles/index.scss'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import Icon from './components/Icon/Icon.vue'
import Button from './components/Button/Button.vue'
import Card from './components/Card/Card.vue'
import Dialog from './components/Dialog/Dialog.vue'
import Pager from './components/Pager/Pager.vue'
import Collapse from './components/Collapse/Collapse.vue'
import CollapseItem from './components/Collapse/CollapseItem.vue'
import Tooltip from './components/Tooltip/Tooltip.vue'
import Dropdown from './components/Dropdown/Dropdown.vue'

/* import the fontawesome core */
import { library } from '@fortawesome/fontawesome-svg-core'
/* import font awesome icon component */
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
/* import all icons */
import { fas } from '@fortawesome/free-solid-svg-icons'

library.add(fas)
const app = createApp(App)

app.use(router)
app.component('Dong-Icon', Icon)
app.component('Dong-Button', Button)
app.component('Dong-Card', Card)
app.component('Dong-Dialog', Dialog)
app.component('Dong-Pager', Pager)
app.component('Dong-Collapse', Collapse)
app.component('Dong-CollapseItem', CollapseItem)
app.component('Dong-Tooltip', Tooltip)
app.component('Dong-Dropdown', Dropdown)
app.component('font-awesome-icon', FontAwesomeIcon)

app.mount('#app')
